package org.gwtmultipage.sample.server;

import hr.fer.zemris.rznu.model.dto.user.UserDTO;

import org.gwtmultipage.sample.client.RegisterService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

@SuppressWarnings("serial")
public class RegisterServiceImpl extends RemoteServiceServlet implements RegisterService{

	public String registerUser(UserDTO newUser) throws IllegalArgumentException {


		return "Hello, " + newUser.getUsername() + "!<br> You are registered!<br><br> ";
	}

}

